package org.suk.dp.simpleFactory;

/**
 * Description: 除法操作类<br/>
 * @version V1.0  2017/6/20 11:53  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class OperationDiv extends Operation {
    @Override
    public double getResult() {
        if(this.getNum2() == 0)
            throw new RuntimeException("除数不能为0");
        return this.getNum1() / this.getNum2();
    }
}
